function updateComponentes(self)
    str='';
    if self.celdas(self.selected).tipodecelda~=0
        for k=1:self.celdas(self.selected).nres
            
           straux=strcat('R',num2str(k),'= ',expressR (self.celdas(self.selected).R(k),'r',5),' ohm');
           if self.celdas(self.selected).R(k)>1e6
               stra1 = sprintf('#%02X%02X%02X', round(1*255), round(0.2*255), round(0*255));
               straux=strcat('<HTML><BODY bgcolor="',stra1,'" width="200">',straux,'</BODY></HTML>');
           else
           if self.celdas(self.selected).R(k)<500
               
               stra1 = sprintf('#%02X%02X%02X', round(1*255), round(1*255), round(0*255));
               straux=strcat('<HTML><BODY bgcolor="',stra1,'" width="200">',straux,'</BODY></HTML>');
           end
           end
           if k==1
               str=straux;
           else
               str=strvcat(str,straux);
           end

        end

        for k=1:self.celdas(self.selected).ncap
           straux=strcat('C',num2str(k),'= ',expressR (self.celdas(self.selected).C(k),'c',5), ' F');
           if self.celdas(self.selected).C(k)>10e-6
               
               stra1 = sprintf('#%02X%02X%02X', round(1*255), round(0.2*255), round(0*255));
               straux=strcat('<HTML><BODY bgcolor="',stra1,'" width="200">',straux,'</BODY></HTML>');
           
           else
               if self.celdas(self.selected).C(k)<50e-12
                  stra1 = sprintf('#%02X%02X%02X', round(1*255), round(1*255), round(0*255));
                  straux=strcat('<HTML><BODY bgcolor="',stra1,'" width="200">',straux,'</BODY></HTML>');
               end
        end
           str=strvcat(str,straux); 
        end


        set(self.handles.componentes,'String','');
        set(self.handles.componentes,'Value',1);
        set(self.handles.componentes,'String',str);

    
    else
        set(self.handles.componentes,'String','');
        set(self.handles.componentes,'Value',1);
    end

end